//创建路由器模块
import Vue from "vue";
//引入插件
import VueRouter from "vue-router";

//引入路由器组件
import ShouYe from "../views/ShouYe.vue";
import FenLei from "../views/FenLei.vue";

//使用插件
Vue.use(VueRouter);

export default new VueRouter({
    mode:"history",
    routes:[
        {
            path:"/shouye",
            name:"shouye",
            component:ShouYe
        },
        {
            path:"/fenlei",
            name:"fenlei",
            component:FenLei
        }
    ]
})